home *** CD-ROM | disk | FTP | other *** search
- Path: socrates.moe.edu.sg!s19
- From: s19@moe.ac.sg (Training IDs)
- Newsgroups: comp.lang.misc,comp.lang.c,comp.lang.pl1,comp.lang.apl
- Subject: Re: GOTO controversy
- Followup-To: comp.lang.misc,comp.lang.c,comp.lang.pl1,comp.lang.apl
- Date: 1 Apr 1996 08:59:18 GMT
- Organization: Ministry of Education
- Message-ID: <4jo5t6$1ki@socrates.moe.edu.sg>
- References: <314FB5F5.259B@simi.is> <3151B47F.70FD@connix.com>
- NNTP-Posting-Host: piaget.moe.edu.sg
- X-Newsreader: TIN [version 1.2 PL2]
-
- 1kldfk;df;gj
-
- Scott Hawley (shawley@connix.com) wrote:
- : What to you think? Loops without using loops?
-
- : a loop:
-
- : for(i=0;i<10;i++)
- : {
- : stuff
- : }
-
- : Looping with out a loop
-
- : no_loop(0,10);
-
- : no_loop(int start, int end)
- : {
- : if(start != end) {
- : stuff
- : no_loop(start+1,end);
- : }
- : }
-
- : I haven't tested this but you get the idea.
-